#window {
    border: 1px black solid;
    height: 500px;
    overflow-y: auto;
}

.friend-nickname {
    clear: both;
}

.friend-nickname-body {
    float: left;
    display: block;
    border-radius: 10px;
    color: black;
    max-width: 100px;
    font-size: 10px;
}

.self-nickname {
    float: right;
    display: block;
    border-radius: 10px;
    color: black;
}

.self-nickname-body {
    min-width: 10px;
    max-width: 100px;
    font-size: 10px;
}

/*提示消息体样式*/
.hint-message {
    clear: both;
    color: #8c8c8c;
    font-size: 13px;
    text-align: center;
    margin-bottom: 10px;
}

.hint-message-body {
    text-align:justify;
    display:inline-block
}

/*自己消息体样式*/
.self-message {
    color: black;
    clear: both;
}

.self-message-body {
    float: right;
    min-height: 40px;
    background-color: #2ECCFA;
    min-width: 50px;
    max-width: 500px;
    clear: both;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 40px;
    border-radius: 16px;
    text-align: center;
}

/*朋友消息体样式*/
.friend-message {
    clear: both;
    color: black;
}

.friend-message-body {
    text-align: center;
    clear: both;
    float: left;
    background-color: whitesmoke;
    min-height: 40px;
    font-size: 20px;
    line-height: 40px;
    border-radius: 16px;
    margin-bottom: 10px;
    min-width: 50px;
    max-width: 500px;
}